<base href="<?php echo base_url(); ?>"/>
<script type="text/javascript">
    var base_url = "<?=base_url();?>";
    var shop_url = "<?=$this->config->item('shop_url');?>";
</script>
<style>
    .nav-child {
        display: none;
        position: absolute;
        z-index: 9999999;
        background-color: #c40000;
    }

    .layui-nav-more {
        content: '';
        width: 0;
        height: 0;
        border-style: solid dashed dashed;
        border-color: #fff transparent transparent;
        overflow: hidden;
        cursor: pointer;
        transition: all .2s;
        -webkit-transition: all .2s;
        position: absolute;
        top: 50%;
        left: 85px;
        margin-top: -3px;
        border-width: 6px;
        border-top-color: rgba(255, 255, 255, .7);
    }

    .layui-nav-mored {
        border-style: dashed dashed solid;
        border-color: transparent transparent #fff;
        margin-top: -9px;
        border-width: 6px;
        overflow: hidden;
    }
</style>
<?php
if ($this->session->customer_id) {
    $sql = "select * from app_customer WHERE id = " . $this->session->customer_id;
    if ($customer_info = $this->db->query($sql)->row_array()) {
        if ($customer_info['identity'] == '1') {
            $sql = "select * from app_admin WHERE customer_id = " . $this->session->customer_id;
            $admin_info = $this->db->query($sql)->row_array();
        }
    }
}
?>
<script type="text/javascript" src="public/js/jquery.min.js"></script>
<?php
$url = $this->config->item("shop_url") . 'companymanagerapi/company_logout/';
$data_arr['time'] = time();
$data_arr['key'] = md5($this->config->item("token_const_wjyh") . $data_arr['time']);
?>

<script type="text/javascript">

    function login() {
        $.ajax({
            type: "get",
            url: "<?php echo base_url();?>login/check",
            dataType: "json",
            success: function (data) {
                if (data.status == 1) {
                    window.location.reload();
                } else {
                    $.ajax({
                        type: "get",
                        dataType: "jsonp",
                        url: "<?php echo $url;?>",
                        data: {'time': '<?php echo $data_arr['time'];?>', 'key': '<?php echo $data_arr['key'];?>'},
                        jsonp: 'callback',
                        async: false,
                        jsonpCallback: "getMessage1",
                        success: function (data) {
                        },
                        error: function (XMLHttpRequest, textStatus, errorThrown) {
                            console.log('someting is wrong')
                        }
                    });
                }
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                console.log('someting is wrong')
            }
        });


    }

    function getMessage1(data) {
        console.log(data)
        if (data['code'] == 200) {
            console.log('ok');
        } else {
            console.log('no');
        }
        window.location.href = '<?php echo $this->config->item("shop_url");?>mMLogin.html';
    }
</script>
<div class="header">
    <div class="top-line">
        <div class="container">
            <p class="top-hi">
                <?php if (isset($_SESSION['customer_info']['username'])) { ?>
                    您好！<span class="name"><?php echo $_SESSION['customer_info']['username'] ?></span> 欢迎进入 <a
                            class="color-red" href="<?=base_url()?>" style="cursor: pointer;">企业用户工作台！</a>
                    <a href="javascript:void(0)" onclick="logout()" class="login-out">退出</a>
                <?php } else { ?>
                    <a href="javascript:void(0)" onclick="login()">登录</a>
                    <!--                    <a href="http://www.dev.wjyh.com/mMLogin.html">登录</a>-->
                <?php } ?>

            </p>
            <?php
            if (isset($_SESSION['customer_id'])) {
                //获取购物车商品
                $customer_id = $_SESSION['customer_id'];
                $cart_goods = $this->db->where('customer_id', $customer_id)->get('app_cart')->result_array();
                if ($cart_goods) {
                    foreach ($cart_goods as $k => $v) {
                        $product_id_arr[] = $v['product_id'];
                    }
                    $product_id_str = join(',', $product_id_arr);
                    
                    $url = $this->config->item("shop_url") . 'companymanagerapi/company_goods_infoes/';
                    $data_arr['time'] = time();
                    $data_arr['key'] = md5($this->config->item("token_const_wjyh") . $data_arr['time']);
                    $data_arr['goodsids'] = $product_id_str;
                    $rs = curl_request($url, $data_arr);
                    $result = json_decode($rs, true);

                    if ($result['code'] == 200) {
                        foreach ($result['data'] as $key => $value) {
                            foreach ($cart_goods as $k => $v) {
                                if ($v['product_id'] == $value['goods_id']) {
                                    $data['data'][$key] = $cart_goods[$k];
                                    $data['data'][$key][] = $value;
                                }
                            }
                        }
                    }else{
                        $cart['data'] = [];
                    }
                    $cart['data'] = $data['data'];
                } else {
                    $cart['data'] = [];
                }
            } else {
                $cart['data'] = [];
            }
            $cart_num = 0;
            if (count($cart['data'])) {
                foreach ($cart['data'] as $v) {
                    $cart_num += $v['num'];
                }
            }
            ?>
            <a href="<?php echo base_url(); ?>cart/index" class="top-right-tab color-red">
                <span class="icon bg-head_icon_cart"></span>
                我的购物车
                <span class="cart-num" style="text-align: center;"><?php echo $cart_num; ?></span>
            </a>
            <a href="<?php echo $this->config->item('shop_url'); ?>bBMember-myGoodsLibrary.html" class="top-right-tab">
                <span class="icon bg-head_icon_storehouse"></span>
                企业清单
            </a>
            <a href="http://care3.live800.com/live800/chatClient/chatbox.jsp?companyID=80000026&configID=2473"
               target="_blank" class="top-right-tab">
                <span class="icon bg-head_icon_kefu"></span>
                在线服务
            </a>
        </div>
    </div>
    <div id="gn_logos">
        <div class="w1190 clearfix" style="padding: 15px 0; position:relative;">
            <div class="gn_wjlogo ">
                <a href="<?php echo $this->config->item('shop_url'); ?>" target="_blank" title="文具1号—办公用品采购网站 阳光价格 老板放心 品质保障 员工省力">
                    <img alt="文具1号—办公用品采购网站 阳光价格 老板放心 品质保障 员工省力" src="public/images/logo.jpg" width="130" height="55">
                </a>
            </div>
            <p class="gn_wjSlogan" style="">
                <a href="<?php echo $this->config->item('shop_url'); ?>" target="_blank">
                    <img src="public/images/card_entrance.gif" alt="企业采购解决方案 阳光价格 老板放心 品质保障 员工省力"
                         title="企业采购解决方案 阳光价格 老板放心 品质保障 员工省力"
                         style="width:190px; height:55px;">
                </a>
                <!--原购物车-->
            </p>
            <div class="gn_right clearfix">
                <?php $identity = $this->session->customer_info['identity'];if($identity == 1):?>
                <a href="<?= base_url() ?>multiple_address" class="head-address-order">
                    <span class="bg-head_icon_address icon"></span>
                    <span class="text">多地址下单</span>
                </a>
                <?php endif;?>

                <!-- <a href="<?php echo $this->config->item('shop_url'); ?>mMPur-indexnew.html" class="head-shopping-list">
                    <span class="bg-head_icon_bill icon"></span>
                    <span class="text">采购清单</span>
                </a> -->
            </div>
            <div id="gn_search_qumall">
                <div class="gn_i-search">
                    <form id="frmSearchGoods" action="<?php echo base_url(); ?>office" method="get">
                        <input autocomplete="off" name="keywords" type="text" class="a" id="search_ipt" placeholder=""
                               value="<?php echo isset($_GET['keywords']) ? $_GET['keywords'] : ''; ?>">
                        <dl class="searchTips">
                        </dl>
                        <button id="btnSearch" type="submit">搜 索</button>
                    </form>
                </div>
                <div class="gn_hotkeywords"><span>热门搜索:</span>
                    <ul>
                        <?php
                        $url = $this->config->item("shop_url") . 'companymanagerapi/company_hot_words/';
                        $data_arr['time'] = time();
                        $data_arr['key'] = md5($this->config->item("token_const_wjyh") . $data_arr['time']);
                        $rs = curl_request($url, $data_arr);
                        $rs = json_decode($rs, true);
                        if ($rs && count($rs['data'])) {
                            $i = 0;
                            foreach ($rs['data'] as $k => $v) {
                                ?>
                                <li class="<?php echo $i == 0 ? 'hot-products' : ''; ?>">
                                    <a href="<?php echo base_url(); ?>office?keywords=<?php echo $v; ?>"
                                       target="_blank"><?php echo $v; ?></a>
                                </li>
                                <?php
                                $i++;
                            }
                        }
                        ?>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <div id="gn_navbg">
        <div class="w1190">
            <div id="gn_nav">
                <?php
                if ($this->session->customer_id) {
                    $sql = 'select identity,id from app_customer WHERE id = ' . $this->session->customer_id;
                    $identitys = $this->db->query($sql)->row_array();
                    $news = $this->db->where('receiver_customer_id', $identitys['id'])->where('read_status', 0)->from('message_history')->get()->result_array();
                    if ($identitys['identity'] == 1) {
                        if ($admin_info['is_account'] == 1) {
                            if ($admin_info['account_period_type'] == 2) {
                                $bills = $this->db->where('customer_id', $identitys['id'])->where('status', 0)->from('app_bill ')->get()->result_array();
                                $bill = count($bills);
                            } else {
                                $bills = $this->db->where('customer_id', $identitys['id'])->where(array('status' => 0, 'bill_date != ' => NULL))->from('app_bill ')->join('app_bill_month', 'app_bill_month.bill_id = app_bill.id')->get()->result_array();
                                $bill = count($bills);
                            }
                        }
                    }
                    //获取admin下面的子辈和孙辈的(包含自己)
                    $member = $this->db->from('app_customer')->select("id")->where('parent_id', $customer_id)->get()->result_array();
                    $str[] = $customer_id;
                    foreach ($member as $k => $v) {
                        $str[] = $v['id'];
                    }
                    foreach ($member as $k => $v) {
                        $where = array('parent_id' => $v['id']);
                        $row = $this->db->from('app_customer')->select("id")->where($where)->get()->result_array();
                        foreach ($row as $key => $val) {
                            $str[] = $val['id'];
                        }
                    }
                    foreach ($str as $key => $value) {
                        if ($value == $customer_id) {
                            unset($str[$key]);
                        }
                    }
                    if (count($str) == "") {
                        $str[] = "-1";
                    }
                    $count1 = $this->db->where_in('customer_id', $str)->where('status', 2)->from('app_temp')->count_all_results();
                    $count2 = $this->db->where_in('customer_id', $str)->where('status', 4)->from('app_temp')->count_all_results();
                    $count = $count1 + $count2;
                    $newspull = count($news);


                }
                ?>

                <?php if (isset($identitys)): ?>
                    <?php if ($identitys['identity'] == 1): ?>
                        <ul class="nav">
                            <li class="nav-item"><a href="<?php echo base_url(); ?>" target="_parent"
                                                    title="工作台"
                                                    class="<?php if (uri_string() == '' || in_array(uri_string(), array('index', 'index/index', 'index_desk'))): ?>gn_nav_currut<?php endif; ?>"
                                >工作台</a></li>
                            <li class="nav-item"><a href="<?php echo base_url(); ?>cost_center/cost_center_index"
                                                    target="_parent" title="成本中心"
                                                    class="<?php if (in_array(uri_string(), array('cost_center/cost_center_index', 'index/index_admin_manage', 'index/index_user_manage', 'cost_center/cost_center_user_present', 'cost_center/cost_center_manage_present', 'cost_center/cost_center_present'))): ?>gn_nav_currut<?php endif; ?>"
                                >成本中心
                                    <span class="layui-nav-more"></span>
                                </a>
                                <dl class="nav-child">
                                    <dd><a href="<?php echo base_url(); ?>index/index_admin_manage">管理账户</a></dd>
                                    <dd><a href="<?php echo base_url(); ?>index/index_user_manage">用户账户</a></dd>
                                </dl>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo base_url(); ?>order/common_order" target="_parent" title="订单管理"
                                   class="<?php if (in_array(uri_string(), array('order/common_order'))): ?>gn_nav_currut<?php endif; ?>">
                                    订单管理 </a></li>
                            <li class="nav-item">
                                <a href="<?php echo base_url('report/center'); ?>" target="_parent" title="数据报表"
                                   class="<?php if (in_array(uri_string(), array('report/center', 'information/detail', 'information/information_purchase_goods', 'information/information_purchase_user'))): ?>gn_nav_currut<?php endif; ?>"
                                >数据报表 <span class="layui-nav-more"></span></a>
                                <dl class="nav-child">
                                    <dd><a href="<?php echo base_url('report/center'); ?>">成本中心</a></dd>
                                    <dd>
                                        <a href="<?php echo base_url('information/information_purchase_goods'); ?>">采购明细</a>
                                    </dd>
                                    <dd>
                                        <a href="<?php echo base_url('information/information_purchase_user'); ?>">采购用户</a>
                                    </dd>
                                </dl>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo base_url(); ?>member/personal" target="_parent" title="个人中心"
                                   class="<?php if (in_array(uri_string(), array('member/personal', 'member/bill_time', 'member/bill_month'))): ?>gn_nav_currut<?php endif; ?>">
                                    个人中心
                                    <span class="layui-nav-more"></span>
                                </a>

                                <dl class="nav-child">
                                    <dd><a href="<?php echo base_url(); ?>member/personal">基本信息
                                        </a></dd>

                                    <?php if (isset($admin_info) && $admin_info['is_account'] == 1): ?>
                                        <?php if ($admin_info['account_period_type'] == 1): ?>
                                            <dd><a href="<?php echo base_url(); ?>member/bill_month">账期信息</a></dd>
                                        <?php else: ?>
                                            <dd><a href="<?php echo base_url(); ?>member/bill_time">账期信息</a></dd>
                                        <?php endif; ?>
                                    <?php endif; ?>
                                </dl>
                            </li>
                            <li class="nav-item"><a href="<?php echo base_url(); ?>news/news_pull" target="_parent"
                                                    title="系统通知"
                                                    class="<?php if (in_array(uri_string(), array('approve/index?id=2', 'news/news_bill', 'news/news_pull'))): ?>gn_nav_currut<?php endif; ?>">系统通知
                                    <span class="gn_nav-num">
                             <?php if (isset($bill)): ?>
                                 <?php echo $newspull + $bill + $count; ?>
                             <?php else: ?>
                                 <?php echo $newspull + $count; ?>
                             <?php endif; ?>
                             </span>

                                </a>
                                <dl class="nav-child">
                                    <dd><a href="<?php echo base_url(); ?>approve/index?id=2">审批中心<span
                                                    class="gn_nav-num"><?php echo $count; ?></span></a></dd>
                                    <?php if (isset($admin_info) && $admin_info['is_account']): ?>
                                        <?php if ($admin_info['is_account'] == 1): ?>
                                            <dd><a href="<?php echo base_url(); ?>news/news_bill">账期提醒<span
                                                            class="gn_nav-num"><?php echo $bill; ?></span></a></dd>
                                        <?php endif; ?>
                                    <?php endif; ?>
                                    <dd><a href="<?php echo base_url(); ?>news/news_pull">消息通知<span
                                                    class="gn_nav-num"><?php echo $newspull; ?></span></a></dd>
                                </dl>
                            </li>
                        </ul>
                    <?php elseif ($identitys['identity'] == 2): ?>
                        <ul class="nav">
                            <li class="nav-item"><a href="<?php echo base_url(); ?>" target="_parent"
                                                    title="工作台"
                                                    class="<?php if (uri_string() == '' || in_array(uri_string(), array('index', 'index/index', 'index_desk'))): ?>gn_nav_currut<?php endif; ?>"
                                >工作台 </a>
                            </li>
                            <li class="nav-item"><a href="<?php echo base_url(); ?>cost_center/cost_center_index"
                                                    target="_parent" title="成本中心"
                                                    class="<?php if (in_array(uri_string(), array('cost_center/cost_center_index', 'index/index_admin_manage', 'index/index_user_manage', 'cost_center/cost_center_user_present', 'cost_center/cost_center_manage_present', 'cost_center/cost_center_present'))): ?>gn_nav_currut<?php endif; ?>"

                                >成本中心
                                    <span class="layui-nav-more"></span></a>
                                <dl class="nav-child">
                                    <dd><a href="<?php echo base_url(); ?>index/index_user_manage">用户账户</a></dd>
                                </dl>
                            </li>
                            <li class="nav-item"><a href="<?php echo base_url(); ?>order/common_order" target="_parent"
                                                    title="订单管理"
                                                    class="<?php if (in_array(uri_string(), array('order/common_order', 'order/approve_order'))): ?>gn_nav_currut<?php endif; ?>"
                                >订单管理
                                    <span class="layui-nav-more"></span></a>
                                <dl class="nav-child">
                                    <dd><a href="<?php echo base_url(); ?>order/common_order">普通订单</a></dd>
                                    <dd><a href="<?php echo base_url(); ?>order/approve_order">审批订单</a></dd>
                                </dl>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo base_url('report/center'); ?>" target="_parent" title="数据报表"
                                   class="<?php if (in_array(uri_string(), array('report/center', 'information/detail', 'information/information_purchase_goods', 'information/information_purchase_user'))): ?>gn_nav_currut<?php endif; ?>"
                                >数据报表 <span class="layui-nav-more"></span></a>
                                <dl class="nav-child">
                                    <dd><a href="<?php echo base_url('report/center'); ?>">成本中心</a></dd>
                                    <dd>
                                        <a href="<?php echo base_url('information/information_purchase_goods'); ?>">采购明细</a>
                                    </dd>
                                    <dd>
                                        <a href="<?php echo base_url('information/information_purchase_user'); ?>">采购用户</a>
                                    </dd>
                                </dl>
                            </li>
                            <li class="nav-item"><a href="<?php echo base_url(); ?>member/personal" target="_parent"
                                                    title="个人中心"
                                                    class="<?php if (in_array(uri_string(), array('member/personal', 'member/bill_time', 'member/bill_month'))): ?>gn_nav_currut<?php endif; ?>"
                                >个人中心 </a>
                            </li>
                            <li class="nav-item"><a href="<?php echo base_url(); ?>news/news_pull" target="_parent"
                                                    title="系统通知"
                                                    class="<?php if (in_array(uri_string(), array('approve/index?id=2', 'news/news_bill', 'news/news_pull'))): ?>gn_nav_currut<?php endif; ?>"
                                >系统通知 <span
                                            class="gn_nav-num"><?php echo $newspull + $count; ?></span> </a>
                                <dl class="nav-child">
                                    <dd><a href="<?php echo base_url(); ?>approve/index?id=2">审批中心<span
                                                    class="gn_nav-num"><?php echo $count; ?></span></a></dd>
                                    <dd><a href="<?php echo base_url(); ?>news/news_pull">消息通知<span
                                                    class="gn_nav-num"><?php echo $newspull; ?></span></a></dd>
                                </dl>
                            </li>
                        </ul>
                    <?php elseif ($identitys['identity'] == 3): ?>
                        <ul class="nav">
                            <li class="nav-item"><a href="<?php echo base_url(); ?>" target="_parent"
                                                    title="工作台"
                                                    class="<?php if (uri_string() == '' || in_array(uri_string(), array('index', 'index/index', 'index_desk'))): ?>gn_nav_currut<?php endif; ?>"
                                >工作台 </a>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo base_url(); ?>cost_center/cost_center_index" target="_parent"
                                   title="成本中心"
                                   class="<?php if (in_array(uri_string(), array('cost_center/cost_center_index', 'index/index_admin_manage', 'index/index_user_manage', 'cost_center/cost_center_user_present', 'cost_center/cost_center_manage_present', 'cost_center/cost_center_present'))): ?>gn_nav_currut<?php endif; ?>">
                                    成本中心

                                </a>
                            </li>
                            <li class="nav-item"><a href="<?php echo base_url(); ?>order/common_order" target="_parent"
                                                    title="订单管理"
                                                    class="<?php if (in_array(uri_string(), array('order/common_order', 'order/approve_order'))): ?>gn_nav_currut<?php endif; ?>"
                                >订单管理 <span class="layui-nav-more"></span></a>
                                <dl class="nav-child">
                                    <dd><a href="<?php echo base_url(); ?>order/common_order">普通订单</a></dd>
                                    <dd><a href="<?php echo base_url(); ?>order/approve_order">审批订单</a></dd>
                                </dl>
                            </li>
                            <li class="nav-item">
                                <a href="<?php echo base_url('information/detail'); ?>" target="_parent" title="数据报表"
                                   class="<?php if (in_array(uri_string(), array('report/center', 'information/detail', 'information/information_purchase_goods', 'information/information_purchase_user'))): ?>gn_nav_currut<?php endif; ?>"
                                >数据报表 <span class="layui-nav-more"></span></a>
                                <dl class="nav-child">
                                    <dd>
                                        <a href="<?php echo base_url('information/detail'); ?>">采购用户</a>
                                    </dd>
                                </dl>
                            </li>
                            <li class="nav-item"><a href="<?php echo base_url(); ?>member/personal" target="_parent"
                                                    title="个人中心"
                                                    class="<?php if (in_array(uri_string(), array('member/personal', 'member/bill_time', 'member/bill_month'))): ?>gn_nav_currut<?php endif; ?>"
                                >个人中心
                                </a>
                            </li>
                            <li class="nav-item"><a href="<?php echo base_url(); ?>news/news_pull" target="_parent"
                                                    title="系统通知"
                                                    class="<?php if (in_array(uri_string(), array('approve/index?id=2', 'news/news_bill', 'news/news_pull'))): ?>gn_nav_currut<?php endif; ?>"
                                >系统通知 <span
                                            class="gn_nav-num"><?php echo $newspull + $count; ?></span> </a>
                                <dl class="nav-child">
                                    <dd><a href="<?php echo base_url(); ?>approve/index?id=2">审批中心<span
                                                    class="gn_nav-num"><?php echo $count; ?></span></a></dd>
                                    <dd><a href="<?php echo base_url(); ?>news/news_pull">消息通知<span
                                                    class="gn_nav-num"><?php echo $newspull; ?></span></a></dd>
                                </dl>
                            </li>
                        </ul>

                    <?php endif; ?>
                <?php else: ?>
                    <ul class="nav">
                        <li class="nav-item"><a href="<?php echo base_url(); ?>" target="_parent" title="工作台"
                                                class="<?php if (uri_string() == '' || in_array(uri_string(), array('index', 'index/index', 'index_desk'))): ?>gn_nav_currut<?php endif; ?>"
                            >工作台</a>
                        </li>
                        <li class="nav-item"><a href="<?php echo base_url(); ?>cost_center/cost_center_index"
                                                target="_parent" title="成本中心"
                                                class="<?php if (in_array(uri_string(), array('cost_center/cost_center_index', 'index/index_admin_manage', 'index/index_user_manage', 'cost_center/cost_center_user_present', 'cost_center/cost_center_manage_present', 'cost_center/cost_center_present'))): ?>gn_nav_currut<?php endif; ?>"
                            >成本中心 </a></li>
                        <li class="nav-item"><a href="<?php echo base_url(); ?>order/common_order" target="_parent"
                                                title="订单管理"
                                                class="<?php if (in_array(uri_string(), array('order/common_order', 'order/approve_order'))): ?>gn_nav_currut<?php endif; ?>"
                            >订单管理 </a></li>
                        <li class="nav-item">
                            <a href="<?php echo base_url('report/center'); ?>" target="_parent" title="数据报表"
                               class="<?php if (in_array(uri_string(), array('report/center', 'information/detail', 'information/information_purchase_goods', 'information/information_purchase_user'))): ?>gn_nav_currut<?php endif; ?>"
                            >数据报表 <span class="layui-nav-more"></span></a>
                            <dl class="nav-child">
                                <dd><a href="<?php echo base_url('report/center'); ?>">成本中心</a></dd>
                                <dd>
                                    <a href="<?php echo base_url('information/information_purchase_goods'); ?>">采购明细</a>
                                </dd>
                                <dd>
                                    <a href="<?php echo base_url('information/information_purchase_user'); ?>">采购用户</a>
                                </dd>
                            </dl>
                        </li>
                        <li class="nav-item"><a href="<?php echo base_url(); ?>member/personal" target="_parent"
                                                title="个人中心"
                                                class="<?php if (in_array(uri_string(), array('member/personal', 'member/bill_time', 'member/bill_month'))): ?>gn_nav_currut<?php endif; ?>"
                            >个人中心 </a></li>
                        <li class="nav-item"><a href="<?php echo base_url(); ?>news/news_pull" target="_parent"
                                                title="系统通知"
                                                class="<?php if (in_array(uri_string(), array('approve/index?id=2', 'news/news_bill', 'news/news_pull'))): ?>gn_nav_currut<?php endif; ?>"
                            >系统通知 <span class="gn_nav-num">0</span> </a></li>
                    </ul>
                <?php endif; ?>
            </div>
        </div>
    </div>

</div>


<!--<script type="text/javascript" src="public/js/jquery.1.7.1-min.js" charset="utf-8"></script>-->

<script type="text/javascript">
    $('.nav-item').hover(function () {
        $(this).find('.nav-child').toggle();
        // $(this).find('.layui-nav-more').addClass('layui-nav-mored')
    });
    $('.nav-item').mouseover(function () {
        $(this).find('.layui-nav-more').addClass('layui-nav-mored')
    });

    $('.nav-item').mouseout(function () {
        // $(this).find('.nav-child').toggle();
        $(this).find('.layui-nav-more').removeClass('layui-nav-mored')

    })
</script>
<style type="text/css">
    .nav-child span {
        margin-left: 6px;
    }
</style>

